-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(fe2): Create/Join Workspace as part of signup flow #3997
base: main
Are you sure you want to change the base?
Conversation
📸 Preview service has generated an image. |
📸 Preview service has generated an image. |
📸 Preview service has generated an image. |
📸 Preview service has generated an image. |
📸 Preview service has generated an image. |
📸 Preview service has generated an image. |
…/specklesystems/speckle-server into andrew/everything-is-a-workspace
📸 Preview service has generated an image. |
📸 Preview service has generated an image. |
📸 Preview service has generated an image. |
📸 Preview service has generated an image. |
📸 Preview service has generated an image. |
📸 Preview service has generated an image. |
📸 Preview service has generated an image. |
📸 Preview service has generated an image. |
📸 Preview service has generated an image. |
📸 Preview service has generated an image. |
📸 Preview service has generated an image. |
📸 Preview service has generated an image. |
📸 Preview service has generated an image. |
📸 Preview service has generated an image. |
packages/frontend-2/components/workspace/DiscoverableWorkspaces.vue
Outdated
Show resolved
Hide resolved
packages/frontend-2/components/workspace/DiscoverableWorkspaces.vue
Outdated
Show resolved
Hide resolved
}) | ||
const allWorkspaces = computed(() => { | ||
const requested = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason why items in
and status: request.status
is needed? Could be something like this:
const allWorkspaces = computed(() => [
...workspaceJoinRequests.value.items.map(request => ({ ...request.workspace })),
...discoverableWorkspaces.value.map(workspace => ({ ...workspace, status: 'Request to join' }))
])
Also not sure about using 'Request to join' as a status, I guess because you render the status in the button but I wouldn't mix them as its not really a status
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The request.status
is needed because DiscoverableList_Requests
returns workspace data nested under a request object with status, but DiscoverableList_Discoverable
returns workspace data directly, so we need to preserve the status when combining them. Does that make sense or maybe I'm misunderstanding?
I fixed the second part
You will need the following frontend feature flags:
FF_WORKSPACES_NEW_PLANS_ENABLED=true
FF_FORCE_WORKSPACE_MEMBERSHIP=true